package com.googlecode.continuity.plugin.gwtext.client;

import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.IndexedPanel;
import com.google.gwt.user.client.ui.Widget;

/**
 * TabPanel
 *
 * @author Peter Schmitt <aragos@aragos.de>
 */
public interface TabPanel extends HasWidgets, IndexedPanel {
  void add(Widget w, String tabText);

  void add(Widget w, String tabText, boolean asHTML);

  void add(Widget w, Widget tabWidget);

  void insert(Widget widget, String tabText, boolean asHTML,
              int beforeIndex);

  void insert(Widget widget, Widget tabWidget, int beforeIndex);

  void insert(Widget widget, String tabText, int beforeIndex);

  void selectTab(int index);
}
